package order.utils;

import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {


    public static String getValue(String key) {
        Properties  prop = new Properties();
//       InputStream in = new PropertiesUtil().getClass().getResourceAsStream("\order.properties");

        try {
            prop.load(new FileReader("C:\\Program Files\\order\\src\\order.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return (String)prop.get(key);
    }
}

